package com.computergames.server.server.client;

import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;

public class RemoveToken {
    private static final String TOKEN_FILE_PATH = "D:\\try\\ComputerGamesServer\\ComputerGamesServer\\src\\main\\resources\\token.txt";

    public static void clearFileContent() {
        try (PrintWriter writer = new PrintWriter(new FileWriter(TOKEN_FILE_PATH))) {
            // 不写任何内容，只是打开文件并关闭，达到清空文件的目的
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
